<div class="nav-wbox">
	<ul id="sddm">
		<?php
			if($c<=0) 
				echo "<li class=\"active\" ><a href=\"index.php?${route}&c=0\" >首页</a></li>";
			else
				echo "<li ><a href=\"index.php?${route}&c=0\" >首页</a></li>";
			foreach($tree as $item){
				$id=$item['father']['id'];
				$desc=$item['father']['desc'];
				if($id==$c) $status='active';
				if(array_search($c, $item['child'])=='id') $status='active';
				echo "<li class=\"$status\"><a href=\"index.php?${route}&c=$id\" onmouseover=\"mopen('m$id')\" onmouseout=\"mclosetime()\">${desc}</a>
				      <div id=\"m$id\" onmouseover=\"mcancelclosetime()\" onmouseout=\"mclosetime()\">";
				foreach($item['child'] as $child) {
					echo "<a href=\"index.php?${route}&c=${child['id']} \"> ${child['desc']} </a>";
				}
				echo"</div></li>";
			} 
		?>
	</ul>
<div style="clear:both"></div>
</div>
